package 网络编程项目.pojo;

import 网络编程项目.util.ObjectUtils;

import java.io.Serializable;

public class Response implements Serializable {

    private ResponseType type;

    private String msg;

    private String fileName;

    private byte[] fileContent;

    private String[] filenames;

    private Object[] onlineUsers;

    private String sender;

    private String receiver;

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public Object[] getOnlineUsers() {
        return onlineUsers;
    }

    public void setOnlineUsers(Object[] onlineUsers) {
        this.onlineUsers = onlineUsers;
    }

    public String[] getFilenames() {
        return filenames;
    }

    public void setFilenames(String[] filenames) {
        this.filenames = filenames;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public byte[] getFileContent() {
        return fileContent;
    }

    public void setFileContent(byte[] fileContent) {
        this.fileContent = fileContent;
    }

    public ResponseType getType() {
        return type;
    }

    public void setType(ResponseType type) {
        this.type = type;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    @Override
    public String toString() {
        return "Response{" +
                "type=" + type +
                ", msg='" + msg + '\'' +
                '}';
    }
}
